﻿using BPMN.Application.Contracts.DTO.Request.Performance;
using BPMN.Application.Contracts.DTO.Response;
using BPMN.Application.IService;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace BPMN.WebApi.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class PerformanceController : ControllerBase
    {
        public PerformanceController(IPerformanceAppService performance)
        {
            Performance = performance;
        }

        public IPerformanceAppService Performance { get; }
        /// <summary>
        /// 列表绩效工资
        /// </summary>
        /// <returns></returns>
        [HttpGet]
          public IActionResult GetAddPerformanceDtos()
        {

            return Ok(Performance.GetAddPerformanceDtos());
        }
       
    }
}
